home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
gfx
/
3d
/
lsocket.lha
/
Install-Client
< prev
next >
Wrap
Text File
|
1996-12-06
|
4KB
|
145 lines
; ************************************************
; *
; * LightSocket Client HD Install Script
; *
; * $VER: Install-LightSocket_Client 1.0
; *
; * Script written by Graham Waddell
; *
; ************************************************
(message
(cat "Note: ENLAN support doesn't use a client (yet), but requires that NetRexx be running on the LightSocket machine prior to usage.\n"
"\nIf you are using ENLAN, you don't need to install anything here.\n\nGo ahead and use LightSocket!"
)
)
(set @app-name "LightSocket Client Install")
(set @default-dest "")
(set ToolSource "LightSocket")
(set ToolDirPrompt "Copy Client to...?")
(set ToolCopyPrompt "Copying Client...")
(set ClientSource (tackon (ToolSource) "Clients") )
(set ClientHelp "Select the network you are using so that the proper client program can be installed.")
(set clientnum
(askchoice
(prompt "Which Network are you using?")
(choices "AmiTCP" "Enlan" "Envoy" "ParNet")
(help ClientHelp)
(default 0)
)
)
(set clientname (select clientnum "AmiTCP.wnd" "Enlan.wnd" "Envoy.wnd" "ParNet.wnd") )
(set clientdirhelp
(cat
"It is recommended that the Envoy client be installed in WBStartup."
"\n\nThe AmiTCP client should be put in AmiTCP:bin.\nAn entry in the AmiTCP:db/inetd.conf &\nAmiTCP:db/services files on each machine (including Local) as well.)"
)
)
(set ClientDir
(askdir
(prompt ToolDirPrompt)
(help clientdirhelp)
(default (select clientnum "AmiTCP:bin" "Enlan:Servers" "SYS:WBStartup" "SYS:Tools"))
)
)
(copyfiles
(prompt ToolCopyPrompt)
(help @copyfiles-help)
(source (tackon ClientSource clientname))
(dest ClientDir)
(infos)
)
(set clientnumhelp
(cat
"It is recommended that the service port number\n"
"be left at 2501, but if that conflicts with your\n"
"own personal setup, change it on ALL machines\n"
"that will be using LightSocket."
)
)
(if (= clientnum 0)
(set portnum (asknumber
(help clientnumhelp)
(prompt "What port number should the LightSocket service use?")
(range 2501 8999)
(default 2501)
) )
)
(set ServicesText (cat "wavenet " portnum "/tcp\n") )
(set clientsvchelp
(cat
"This will append the AmiTCP:db/services file with\n"
"an entry for LightSocket.\n"
)
)
(if (= clientnum 0)
(textfile
(help clientsvchelp)
(prompt "About to append services file...")
(dest "AmiTCP:db/services")
(include "AmiTCP:db/services")
(append ServicesText)
(confirm) )
)
(set InetdText ( cat "wavenet stream tcp wait root " (tackon ClientDir clientname) "\n" ) )
(set clientinethelp
(cat
"This will append the AmiTCP:db/inetd.conf file with\n"
"an entry for LightSocket.\n"
)
)
(set clientParNethelp
(cat
"This will append the Boot.Client or the\n"
"Boot.Host file with an entry for LightSocket.\n"
)
)
(if (= clientnum 3)
(set ParNetAsk (askbool
(help clientParNethelp)
(prompt "Would you like to run the ParNet client in your ParNet Boot.Client or Boot.Host script?")
(default 1)
)
)
)
(set ParNetText (tackon ClientDir clientname) )
(if ( (= clientnum 4) && (= ParNetAsk 1) ) (
(set ParNetScriptFile
(askfile
(prompt "Where is your ParNet Boot script?")
(help clientParNethelp)
(default "Sys:Boot.Client")
)
)
(textfile
(help clientParNethelp)
(prompt "About to append ParNet Boot script...")
(dest ParNetScriptFile)
(include ParNetScriptFile)
(append ParNetText)
(confirm) )
)
)
(message "\n\nLightSocket Client installed. Make sure that\nit is run before LightSocket!\n")